import request from '@/utils/request'

// 分页查询库区详细信息
export const getAreaDetail = (data) => request.get('/area/pageDetail', {
  params: data
})

// 删除库区
export const delAreaData = (data) => request.delete('/area', {
  params: data
})

// 修改库区
export const updateAreaData = (data) => request.put('/area', data)

// 导入表格
export const importExcel = (data) => request.post('/area/importExcel', data)

// 查询全部库区
export const queryAllArea = (data) => request.get('/area/list', {
  params: data
})

// 查询库区总览
export const queryOverview = (id) => request.get(`/area/overview/${id}`)
